import store from '@/store'
export default (id, idType) => {
  let contactInfo
  if (idType === 0) {
    contactInfo = store.state.chatInformation.systemNotiList.filter(item => item.id === id)[0]
  } else if (idType === 1) {
    if (store.state.chatInformation.userList[id]) {
      contactInfo = store.state.chatInformation.userList[id]
    }
  } else {
    if (store.state.chatInformation.groupList[id]) {
      contactInfo = store.state.chatInformation.groupList[id]
    }
  }
  return contactInfo
}
